package com.qscloud.cust.service.impl;

import com.qscloud.cust.entity.User;
import com.qscloud.cust.dao.UserDao;
import com.qscloud.cust.service.UserService;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cache.annotation.CachePut;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author hr
 * @since 2021-04-14
 */
@Service
public class  UserServiceImpl extends ServiceImpl<UserDao, User> implements UserService {



    @Autowired
    private UserDao userDao;
    @Override
    @CachePut(cacheNames ="User" , key = "querydslActivator")
    public User queryOne() {
        return userDao.queryOneById();
    }


}
